/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package uimigration.mappingtable;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.AbstractEnumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Behaviour Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see uimigration.mappingtable.MappingtablePackage#getBehaviourType()
 * @model
 * @generated
 */
public final class BehaviourType extends AbstractEnumerator {
	/**
	 * The '<em><b>Render</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Render</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RENDER_LITERAL
	 * @model name="Render"
	 * @generated
	 * @ordered
	 */
	public static final int RENDER = 0;

	/**
	 * The '<em><b>Content</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Content</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONTENT_LITERAL
	 * @model name="Content"
	 * @generated
	 * @ordered
	 */
	public static final int CONTENT = 1;

	/**
	 * The '<em><b>Link</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Link</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LINK_LITERAL
	 * @model name="Link"
	 * @generated
	 * @ordered
	 */
	public static final int LINK = 2;

	/**
	 * The '<em><b>Render</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RENDER
	 * @generated
	 * @ordered
	 */
	public static final BehaviourType RENDER_LITERAL = new BehaviourType(
			RENDER, "Render", "Render");

	/**
	 * The '<em><b>Content</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONTENT
	 * @generated
	 * @ordered
	 */
	public static final BehaviourType CONTENT_LITERAL = new BehaviourType(
			CONTENT, "Content", "Content");

	/**
	 * The '<em><b>Link</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LINK
	 * @generated
	 * @ordered
	 */
	public static final BehaviourType LINK_LITERAL = new BehaviourType(LINK,
			"Link", "Link");

	/**
	 * An array of all the '<em><b>Behaviour Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final BehaviourType[] VALUES_ARRAY = new BehaviourType[] {
			RENDER_LITERAL, CONTENT_LITERAL, LINK_LITERAL, };

	/**
	 * A public read-only list of all the '<em><b>Behaviour Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated NOT
	 */
	public static final List<BehaviourType> VALUES = Collections
			.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Behaviour Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BehaviourType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			BehaviourType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Behaviour Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BehaviourType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			BehaviourType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Behaviour Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BehaviourType get(int value) {
		switch (value) {
		case RENDER:
			return RENDER_LITERAL;
		case CONTENT:
			return CONTENT_LITERAL;
		case LINK:
			return LINK_LITERAL;
		}
		return null;
	}

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private BehaviourType(int value, String name, String literal) {
		super(value, name, literal);
	}

} //BehaviourType
